#ifndef __SERIAL_H
#define __SERIAL_H

#include <stdio.h>
#include "main.h"

int fputc(int ch, FILE *fp);
int fgetc(FILE *fp);
extern uint8_t rx_buf[100];
extern DMA_HandleTypeDef hdma_usart1_rx;


int fputc(int ch, FILE *fp);
int fgetc(FILE *fp);
void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size);




#endif

